using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication2.Models.Mapping
{
    public class HR_Employee_childMap : EntityTypeConfiguration<HR_Employee_child>
    {
        public HR_Employee_childMap()
        {
            // Primary Key
            this.HasKey(t => t.id);

            // Properties
            this.Property(t => t.Child_name)
                .HasMaxLength(30);

            // Table & Column Mappings
            this.ToTable("HR_Employee_child");
            this.Property(t => t.id).HasColumnName("id");
            this.Property(t => t.Employee_id).HasColumnName("Employee_id");
            this.Property(t => t.Child_name).HasColumnName("Child_name");
            this.Property(t => t.Child_birth_date).HasColumnName("Child_birth_date");
            this.Property(t => t.ID2).HasColumnName("ID2");
        }
    }
}
